//
//  CPTableViewCell.swift
//  InternshipGo
//
//  Created by zhujinhui on 15/12/29.
//  Copyright © 2015年 kyson. All rights reserved.
//

import UIKit

class CPTableViewCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    static func loadFromXib()->CPTableViewCell {
//        let className = _stdlib_getDemangledTypeName(self)
        let className = NSStringFromClass(self).componentsSeparatedByString(".").last
        
        let views = NSBundle.mainBundle().loadNibNamed(className, owner: nil, options: nil)
        return views.first as! CPTableViewCell;
    }
    

}
